package main

import (
	"ScriptServer/models"
	"fmt"
)
import _"github.com/jinzhu/gorm/dialects/mysql"

func main() {
	//configs.SetConfDir("configs")
	db,err := models.Init("configs/db.yaml")
	if(err != nil){
		fmt.Println(err)
		return
	}
	defer db.Close()
	router := InitRouter()
	router.Run("0.0.0.0:8823")
}
